<?php

namespace Summer\location\Models;

use \Backend\Models\ExportModel;

class AreaExport extends ExportModel {

    public function exportData($columns, $sessionKey = null)
    {
        $area = AreaModel::all();
        $area->each(function($area) use ($columns) {
            $area->addVisible($columns);
        });

        return $area->toArray();
        
    }

}
